# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=letsencrypt-nosudo
pkgver=0.0.1
pkgrel=0
pkgdesc="Free HTTPS certificates without having to trust the letsencrypt cli with sudo/root"
options="!check" # No testsuite
url="https://github.com/diafygi/letsencrypt-nosudo"
arch="noarch"
license="AGPL-3.0-only"
depends="python2 openssl"
subpackages="${pkgname}-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/itoffshore/${pkgname}/archive/${pkgver}.tar.gz"

package() {
	mkdir -p "${pkgdir}/usr/bin"
	mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
	install -Dm755 *.py "${pkgdir}/usr/bin/"
	install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/"
}

sha512sums="1d496a2dc74892f2f359562961547aad71c940fc372e2895d618cdf2a7b44b116ae039608e3589de74658ec9140ffbe1fcb51728805d215a4a6aa0c053c21672  letsencrypt-nosudo-0.0.1.tar.gz"
